package acm.华中农业;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class C {
    public static void main(String[] args) throws IOException {
        BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
        String[] read=null;
        read=in.readLine().split(" ");
        int k = Integer.parseInt(read[1]);
        read=in.readLine().split(" ");
        int sum=0;
        for (String r : read) {
            sum+=Integer.parseInt(r);
        }
        System.out.println((sum-k)>=50?"KFC":"QAQ");
    }
}
